# 第2周第1节课后作业
# 1.加法
def add(x, y):
    return x + y


# 2.减法
def sub(x, y):
    return x - y


# 3.乘法
def mul(x, y):
    return x * y


# 4.除法
def divide(x, y):
    return x / y


# 5.整除
def double_div(x, y):
    return x // y


# 6.取余
def surplus(x, y):
    return x % y


# 7.开方
def sqrt(x, y):
    return x ** (1/y)


if __name__ == "__main__":

    result1 = add(2,3)
    print(result1)

    result2 = sub(5,2)
    print(result2)

    result3 = mul(4,6)
    print(result3)

    result4 = divide(6,2)
    print(result4)

    result5 = double_div(5,2)
    print(result5)

    result6 = surplus(5,2)
    print(result6)

    result7 = sqrt(36,2)
    print(result7)